package com.liqi.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

@FeignClient("service-stocking")
public interface StockFeign {

    @PutMapping("{num}/{id}")
    public int decreNum(@PathVariable  Integer num, @PathVariable  Integer id);

}
